package cn.yt.hospital.service.impl;

import cn.yt.hospital.entity.Doctor;
import cn.yt.hospital.mapper.DoctorMapper;
import cn.yt.hospital.service.IDoctorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangtao
 * @since 2023-03-01
 */
@Service
public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor> implements IDoctorService {

    @Autowired
    private DoctorMapper doctorMapper;
    @Override
    public List<Doctor> getAllDoctor() {
        return doctorMapper.getAllDoctor();
    }
}
